This method overrides Application's normal behavior so that all command key events (keydown w/ NX_COMMANDMASK) go first to the KeyWindow, so that responders there get a chance to intercept them before they get to the menus.
*/
{
if ( theEvent->type == NX_KEYDOWN && theEvent->flags
& NX_COMMANDMASK ) {
if ( [keyWindow commandKey:theEvent] )
return ( self ); // The keywindow handled this event
if ( mainWindow != keyWindow && [mainWindow commandKey:theEvent] )
return ( self ); // The MainWindow handled this event
This method appends ".debug" to the appName if the DEBUGGING global is turned on, otherwise behaves as normal. This is used to have Locus writes defaults under a different owner when running in test mode